<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Friend
 * @version 		$Id: small.html.php 4856 2012-10-09 05:58:26Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
<ul class="block_listing">
{foreach from=$aFriends key=iKey name=friend item=aFriend}
	<li>
		<div class="block_listing_image">
			{img user=$aFriend suffix='_50_square' max_width=32 max_height=32}
		</div>	
                <div class="block_listing_title" style="padding-left:56px;">
			{$aFriend|user:'':'':'':12:true}
		</div>
		{if !$is_myprofile}
                <div class="link">
                    <a href="#" onclick="return $Core.addAsFriend('{$aFriend.user_id}');">Follow</a>
                </div>
                {/if}
		<div class="clear"></div>
	</li>
{/foreach}
{if count($aFriends)==0}
<div>
	No community found!
</div>
{/if}
</ul>
<div class="clear"></div>
{if count($aFriends)>0}
<div class="view_all">
    <a href="{url link='pages.view_page'}">View More</a>
</div>
{/if}
